package com.own.business.wechat.mobile.em;

import com.own.base.BaseResponseCode;
import lombok.AllArgsConstructor;

/**
 * WechatMobileExceptionEnum
 *
 * @author chenxueli
 * @date 2023-06-30 10:39:40
 */
@SuppressWarnings("all")
@AllArgsConstructor
public enum WechatMobileExceptionEnum implements BaseResponseCode {

    DEFAULT("wechat_mobile_error", "微信移动应用平台处理异常"),
    NULL_OF_OPEN_ID("null_of_open_id", "openId信息为空"),
    NULL_OF_TEMPLATE_ID("null_of_template_id", "模板id为空"),
    NULL_OF_APP_ID("null_of_app_id", "微信appId参数为空"),
    NULL_OF_APP_SECRET("null_of_app_secret", "微信appSecret参数为空"),
    USER_EXCEPTION("user_exception", "用户信息异常"),
    INVALID_OPEN_ID("invalid_open_id", "无效的openId，请先验证openId的信息"),
    INVALID_TOKEN("invalid_token", "无效的token"),
    ;

    /**
     * 返回状态码
     */
    private final String code;

    /**
     * 描述
     */
    private final String desc;

    /**
     * 获取返回信息
     *
     * @return 返回code
     */
    @Override
    public String code() {
        return this.code;
    }

    /**
     * 获取描述
     *
     * @return 返回描述
     */
    @Override
    public String desc() {
        return this.desc;
    }

}
